package com.example.livereplay.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.livereplay.common.model.enity.SysAttachment;
import com.example.livereplay.common.model.enity.SysUser;
import com.example.livereplay.common.model.request.LoginByPhoneRequest;
import com.example.livereplay.common.model.request.LoginByUserNameRequest;
import com.example.livereplay.common.model.request.UpdatePasswordRequest;
import com.example.livereplay.common.model.request.UserRegisterRequest;
import org.springframework.web.multipart.MultipartFile;


public interface SysUserService extends IService<SysUser> {
    //上传头像
    SysAttachment uploadHead(MultipartFile file);

    //修改密码
    Boolean userUpdatePassword(UpdatePasswordRequest updatePasswordRequest);

    //注册
    Boolean userRegister(UserRegisterRequest userRegisterRequest);

    //用户登录
    Boolean loginByUserName(LoginByUserNameRequest loginByUserNameRequest);

    //手机号登录
    Boolean loginByPhone(LoginByPhoneRequest loginByPhoneRequest);
}
